home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / SOCKET.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  73 lines

  1. /*
  2.  * $Id: socket.h,v 1.5 1998/03/15 09:52:54 ralf Exp $
  3.  */
  4. #ifndef __ASM_MIPS_SOCKET_H
  5. #define __ASM_MIPS_SOCKET_H
  6.  
  7. #include <asm/sockios.h>
  8.  
  9. /*
  10.  * For setsockoptions(2)
  11.  *
  12.  * This defines are ABI conformant as far as Linux supports these ...
  13.  */
  14. #define SOL_SOCKET    0xffff
  15.  
  16. #define SO_DEBUG    0x0001    /* Record debugging information.  */
  17. #define SO_REUSEADDR    0x0004    /* Allow reuse of local addresses.  */
  18. #define SO_KEEPALIVE    0x0008    /* Keep connections alive and send
  19.                    SIGPIPE when they die.  */
  20. #define SO_DONTROUTE    0x0010    /* Don't do local routing.  */
  21. #define SO_BROADCAST    0x0020    /* Allow transmission of
  22.                    broadcast messages.  */
  23. #define SO_LINGER    0x0080    /* Block on close of a reliable
  24.                    socket to transmit pending data.  */
  25. #define SO_OOBINLINE 0x0100    /* Receive out-of-band data in-band.  */
  26. #if 0
  27. To add: #define SO_REUSEPORT 0x0200    /* Allow local address and port reuse.  */
  28. #endif
  29.  
  30. #define SO_TYPE        0x1008    /* Compatible name for SO_STYLE.  */
  31. #define SO_STYLE    SO_TYPE    /* Synonym */
  32. #define SO_ERROR    0x1007    /* get error status and clear */
  33. #define SO_SNDBUF    0x1001    /* Send buffer size. */
  34. #define SO_RCVBUF    0x1002    /* Receive buffer. */
  35. #define SO_SNDLOWAT    0x1003    /* send low-water mark */
  36. #define SO_RCVLOWAT    0x1004    /* receive low-water mark */
  37. #define SO_SNDTIMEO    0x1005    /* send timeout */
  38. #define SO_RCVTIMEO     0x1006    /* receive timeout */
  39.  
  40. /* linux-specific, might as well be the same as on i386 */
  41. #define SO_NO_CHECK    11
  42. #define SO_PRIORITY    12
  43. #define SO_BSDCOMPAT    14
  44.  
  45. #define SO_PASSCRED    17
  46. #define SO_PEERCRED    18
  47.  
  48. /* Security levels - as per NRL IPv6 - don't actually do anything */
  49. #define SO_SECURITY_AUTHENTICATION        22
  50. #define SO_SECURITY_ENCRYPTION_TRANSPORT    23
  51. #define SO_SECURITY_ENCRYPTION_NETWORK        24
  52.  
  53. #define SO_BINDTODEVICE        25
  54.  
  55. /* Socket filtering */
  56. #define SO_ATTACH_FILTER        26
  57. #define SO_DETACH_FILTER        27
  58.  
  59. /* Types of sockets.  */
  60. #define SOCK_DGRAM 1        /* Connectionless, unreliable datagrams
  61.                    of fixed maximum length.  */
  62. #define SOCK_STREAM 2        /* Sequenced, reliable, connection-based
  63.                    byte streams.  */
  64. #define SOCK_RAW 3        /* Raw protocol interface.  */
  65. #define SOCK_RDM 4        /* Reliably-delivered messages.  */
  66. #define SOCK_SEQPACKET 5    /* Sequenced, reliable, connection-based,
  67.                    datagrams of fixed maximum length.  */
  68. #define SOCK_PACKET 10        /* Linux specific way of getting packets at
  69.                    the dev level.  For writing rarp and
  70.                    other similar things on the user level.  */
  71.  
  72. #endif /* __ASM_MIPS_SOCKET_H */
  73.